//app.js
App({
  onLaunch: function () {
    if (!wx.getStorageSync("userInfo")) {
      this.goLoginPageTimeOut()
      return
    }
    // 判断是否登录
    /*
    let token = wx.getStorageSync('token');
    if (!token) {
      this.goLoginPageTimeOut()
      return
    }
    */
  },
  goLoginPageTimeOut: function () {
    setTimeout(function () {
      wx.navigateTo({
        url: "/pages/authorize/index"
      })
    }, 1000)
  },
  globalData: {
    userInfo: null
  }
})